#ifndef IPCONFIG_H
#define IPCONFIG_H

#include <QWidget>
#include "blldataflow.h"
#include "shadow.h"

namespace Ui {
class IPConfig;
}

class IPConfig : public QWidget
{
    Q_OBJECT

public:
    explicit IPConfig(QWidget *parent = nullptr);
    ~IPConfig();

private slots:
    void on_btnLocalNet_clicked();
    void on_btnMaterialNet_clicked();
    void on_btnPrintNet_clicked();
    void retranslateUiSlot();

private:
    void initWidget();
    void readParam();//Read ipconfig parameters
    void saveLocalParam();//Save ipconfig parameters
    void saveRemoteIPParam();//Save ipconfig parameters
    void savePrintIPParam();//Save ipconfig parameters

private:
    Ui::IPConfig *ui;
    BllDataFlow * bdf;
    QString ipaddr;
    QString subnetMask;
    QString defaultGateway;
    QString dnsAddr;
    QString remoteIP;
    QString printIP;
};

#endif // IPCONFIG_H
